import Vue from 'vue'
import Vuex from 'vuex'
import actions from './actions'
import mutations from './mutations'
import modules from './modules'
Vue.use(Vuex)
const state = {
  menu: null, // 菜单栏
  lv2MenuId: +localStorage.getItem('lv2Menu') || 11000, // 二级菜单栏id
  lv3MenuId: +localStorage.getItem('lv3Menu') || 11001, // 三级菜单栏id
  lv3Id: +localStorage.getItem('lv3Id') || null,
  // lv2MenuId: '',
  // lv3MenuId: '',
  // lv3Id: '',
  userInfo: {}, // 用户信息
  groupMenu: [], // 架构菜单权限
  breadTail: ''
}
export default new Vuex.Store({
  state,
  actions,
  mutations,
  modules: {
    ...modules
  }
})
